/*
 * CommunicationSocket.h
 *
 *  Created on: Oct 26, 2012
 *      Author: lucas
 */

#ifndef COMMUNICATIONSOCKET_H_
#define COMMUNICATIONSOCKET_H_

#include "Socket.h"
#include <string>

class CommunicationSocket : public Socket {
private:
	CommunicationSocket(const CommunicationSocket& cs);
	CommunicationSocket& operator=(const CommunicationSocket& cs);
protected:
	bool connected;
	CommunicationSocket() : Socket() { connected = false;};
public:
	explicit CommunicationSocket(int socketfd) : Socket(socketfd) {
		connected = true;};
	void enviar(const std::string& msg);
	void recibir(std::string& msg);
	bool conectado();
	virtual ~CommunicationSocket();
};

#endif /* COMMUNICATIONSOCKET_H_ */
